﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace FantasyDraft2.Models
{
    public class UserComment
    {
        [Key]
        public int CommentId { get; set; }

        public int UserId { get; set; }
        public string Comment { get; set; }

        //UserComment has a 1 to 1 relationship with User [UserId is a foreign key that references User's UserId] so a reference to User must be made
        //in order to communicate.  
        public virtual User User { get; set; }
    }
}